<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
	<f:layout name="Default" />

	This Template is responsible for creating a table of domain objects.

	If you modify this template, do not forget to change the overwrite settings
	in /Configuration/ExtensionBuilder/settings.yaml:
	  Resources:
		Private:
		  Templates:
			List.html: keep

	Otherwise your changes will be overwritten the next time you save the extension in the extension builder

	<f:section name="content">
		<f:flashMessages />
		<div class="portlet light ">
		    <div class="portlet-title">
		        <div class="caption">
		            <f:link.action action="new" arguments="{casetype:casetype}" class="btn btn-info">新增案例</f:link.action>
		        </div>
		        <div class="actions">
		            <div class="btn-group btn-group-devided">
		                <f:form action="list" name="search" class="form-inline" method="GET" style="float: left;margin-right: 10px;">
		                     <div class="input-group">
								<f:form.select class="form-control"  name="industry" value="{industry}" options="{hylist}" optionValueField="uid" optionLabelField="name" prependOptionLabel="--选择行业分类--"/> 	
					        </div>
					         <div class="input-group">
								<f:form.select class="form-control"  name="product" value="{product}" options="{cplist}" optionValueField="uid" optionLabelField="name" prependOptionLabel="--选择产品分类--"/> 	
					        </div>
					         <div class="input-group">
								<f:form.select class="form-control"  name="labels" value="{labels}" options="{bqlist}" optionValueField="uid" optionLabelField="name" prependOptionLabel="--选择标签--"/> 	
					        </div>
		                    <div class="input-group">
		                        <div class="input-icon">
		                            <i class="fa fa-search"></i>
		                            <f:form.textfield name="keyword" value="{keyword}" class="form-control" placeholder="请输入标题查询"/>
		                        </div>
		                        <span class="input-group-btn">
		                            <f:form.submit class="btn btn-success" value="搜" />
		                        </span>
		                    </div>
		                </f:form>
		            </div>
		        </div>
		        <div class="portlet-body">
		            <div class="table-scrollable">
		            	<f:widget.paginate objects="{casetabs}" as="casetabsPagination"  configuration="{settings.paginate}">
			            	<table class="tx_casetab table table-hover table-light">
							<thead>
								<tr class="uppercase">
									<th>序号</th>
									<th width="25%">标题</th>
									<th>行业分类</th>
									<th>产品分类</th>
									<th width="30%">应用场景</th>
									<th>时间</th>
									<th class="text-center">操作</th>
								</tr>
							</thead>
		                    <tbody>
								<f:for each="{casetabsPagination}" as="casetab" iteration="itemIteration1">
									<tr>
			                            <td>
			                            	{f:cObject(typoscriptObjectPath:'lib.calc', data:'{itemIteration1.cycle}+({page}-1)*{settings.paginate.itemsPerPage}')}
			                            </td>
										<td>
											{casetab.title}<br/>
											<f:if condition="{casetab.tagname}">
												<font style="color: #a3a6a9;font-size: 12px">
													标签：
													<f:for each="{casetab.tagname}" as="tag" iteration="item">
														{tag.name} &nbsp;
													</f:for>
												</font>
											</f:if>
										</td>
										<td>
											{casetab.industry.name}
										</td>
										<td>
											<f:for each="{casetab.proname}" as="pro" iteration="item1">
												{pro.name} &nbsp;
											</f:for>
										</td>
										<td>{casetab.spare4-> f:format.crop(maxCharacters: '60', respectWordBoundaries:'0') -> f:format.stripTags()}</td>
										<td>{casetab.datetime -> f:format.date(format:'Y-m-d')}</td>
										<td>
											<f:link.action action="edit" arguments="{casetab : casetab}" class="btn btn-info btn-xs edit">编辑</f:link.action>
											<f:link.action action="delete" arguments="{casetab : casetab}" onclick="return confirm('您确定要删除吗?');"  class="btn btn-danger btn-xs delete btn-del">删除</f:link.action>
										</td>
									</tr>
								</f:for>
							</tbody>
						</table>
						</f:widget.paginate>
					</div>
		        </div>
		    </div>
		</div>
	</f:section>
</html>